package com.haizhi.messagehub.template;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.haizhi.messagehub.bean.form.MessageForm;
import com.haizhi.messagehub.service.MessageHubService;

@RestController
public class RedisProducerTemplate {

    @Resource(name = "messageHubServiceImpl")
    MessageHubService messageHubService;

    @RequestMapping("/aaa")
    public void test(MessageForm messageForm) {
        messageHubService.producer(messageForm);
    }
}
